import http from '@/utils/request'

/**
  用于登录
 */
export const reqLogin = data => {
  return http({
    method: 'post',
    url: '/sys/login',
    data
  })
}

/**
 * 用于获取用户资料
 */
export const reqGetUserInfo = () => {
  return http({
    method: 'post',
    url: '/sys/profile'
  })
}

/**
 *用于获取用户id(带头像)
 * @param {*} id 用户id user id
 */
export const reqGetBaseInfo = (id) => {
  return http({
    method: 'get',
    url: `/sys/user/${id}`
  })
}

/**
 * 获取员工的简单列表
 * **/
export function reqGetSimpleUserList() {
  return http({
    method: 'get',
    url: '/sys/user/simple'

  })
}

